'use strict';

module.exports = appInfo => {
  const config = exports = {};

//   const test_url = 'http://192.168.1.155:9999/api/zpdksq';
//   config.nsrsbh = '421281199002102731';
  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_pb_123';

//   config.base_url = test_url;
//   config.middleware = ['filter'];

  config.view = {
    defaultViewEngine: 'nunjucks',
    mapping: {
        '.html': 'nunjucks',
        },
    };
    exports.session = {
        key: 'KEY_SESS',
        maxAge: 3600 * 1000, // 1小时
        httpOnly: true,
        encrypt: true,
    };
    config.news = {
        // pageSize: 5,
        port1: '8091',
        port2: '8091',
        serverUrl: '84.12.68.125', //接口公共部分，通过this.config.news访问
    };
 
config.security = {
    csrf: {
        enable: false,
    },
};
config.httpclient = {
    request: {
      // 默认 request 超时时间
      timeout: 30 * 1000,
    },
  };
//编写
return config;
};